cargo.git
11 years agoImprove the profiling output of Cargo
Alex Crichton [Mon, 9 Mar 2015 16:45:40 +0000 (09:45 -0700)]
Improve the profiling output of Cargo

* Don't use `{:?}` in profiling output, it's too noisy
* Allow an integer to be specified with `CARGO_PROFILE` indicating how many
  levels deep should be printed.

11 years agoAuto merge of #1389 - jimmycuadra:patch-1, r=alexcrichton
bors [Sat, 7 Mar 2015 19:35:09 +0000 (19:35 +0000)]
Auto merge of #1389 - jimmycuadra:patch-1, r=alexcrichton

Add documentation for the `harness` manifest option, introduced in a6589681351dc4a87b6fc268d47b7d608004b455.

11 years agoDocument the `harness` manifest option.
Jimmy Cuadra [Sat, 7 Mar 2015 12:53:12 +0000 (04:53 -0800)]
Document the `harness` manifest option.

Add documentation for the `harness` manifest option, introduced in a6589681351dc4a87b6fc268d47b7d608004b455.

11 years agoAuto merge of #1373 - alexcrichton:issue-785, r=wycats
bors [Fri, 6 Mar 2015 18:53:53 +0000 (18:53 +0000)]
Auto merge of #1373 - alexcrichton:issue-785, r=wycats

This commit now funnels all output of Cargo by default to be in `target/debug`
instead of the bare `target` directory. This change is targeted at raising
awareness of whether a debug build is being used (as opposed to a release
build). It is also aimed at remedying a common scenario where `cargo build` is
followed by `cargo build --release` and then the debug binaries are run by
accident.

This does not yet explore the option of providing symlinks to the most recent
build, hence this commit is a breaking change due to the restructuring of the
layout of the output.

Note that this commit does **not** change the output location for documentation.
All output of `cargo doc` continues to be funneled into the `target/doc`
directory.

Closes #785

11 years agoChange the default output location to target/debug
Alex Crichton [Tue, 3 Mar 2015 21:46:02 +0000 (13:46 -0800)]
Change the default output location to target/debug

This commit now funnels all output of Cargo by default to be in `target/debug`
instead of the bare `target` directory. This change is targeted at raising
awareness of whether a debug build is being used (as opposed to a release
build). It is also aimed at remedying a common scenario where `cargo build` is
followed by `cargo build --release` and then the debug binaries are run by
accident.

This does not yet explore the option of providing symlinks to the most recent
build, hence this commit is a breaking change due to the restructuring of the
layout of the output.

Note that this commit does **not** change the output location for documentation.
All output of `cargo doc` continues to be funneled into the `target/doc`
directory.

Closes #785

11 years agoAuto merge of #1387 - alexcrichton:issue-1382, r=brson
bors [Fri, 6 Mar 2015 18:34:43 +0000 (18:34 +0000)]
Auto merge of #1387 - alexcrichton:issue-1382, r=brson

A synthetic "Package" is being created as part of this step but its paths were
pointing at the original root, not the unpacked tarball for testing. This meant
that some assumptions about the relative-ness of paths didn't quite end up
working out.

Closes #1382

11 years agoCorrectly set up paths when packaging
Alex Crichton [Thu, 5 Mar 2015 23:29:05 +0000 (15:29 -0800)]
Correctly set up paths when packaging

A synthetic "Package" is being created as part of this step but its paths were
pointing at the original root, not the unpacked tarball for testing. This meant
that some assumptions about the relative-ness of paths didn't quite end up
working out.

Closes #1382

11 years agoAuto merge of #1365 - ches:docs, r=brson
bors [Fri, 6 Mar 2015 01:41:22 +0000 (01:41 +0000)]
Auto merge of #1365 - ches:docs, r=brson

While reading through the docs, this section broke my concentration even though the functionality's purpose is fairly obvious, because of a grammatical agreement problem and some redundant/wordy terms. I hope this is an improvement.

A couple of other minor changes:

1. "Limitations" sound like things Cargo is *incapable* of doing. The points here are conscious decisions, so calling them "restrictions" seemed more appropriate to me.
2. TOML's source is linked to on the FAQ page, but I'm pretty likely to land directly on the Configuration page from a search, so a direct link from there seemed helpful.

r? @steveklabnik for docs.

11 years agoAuto merge of #1383 - alexcrichton:issue-1381, r=huonw
bors [Fri, 6 Mar 2015 00:47:35 +0000 (00:47 +0000)]
Auto merge of #1383 - alexcrichton:issue-1381, r=huonw

Ensure we don't get erroneous information about invalid log levels or such.

Closes #1381

11 years agoExplicitly remove RUST_LOG when crawling output
Alex Crichton [Thu, 5 Mar 2015 20:11:08 +0000 (12:11 -0800)]
Explicitly remove RUST_LOG when crawling output

Ensure we don't get erroneous information about invalid log levels or such.

Closes #1381

11 years agoAuto merge of #1376 - fenhl:patch-1, r=alexcrichton
bors [Wed, 4 Mar 2015 17:47:32 +0000 (17:47 +0000)]
Auto merge of #1376 - fenhl:patch-1, r=alexcrichton

`dependencie"` → `dependencies`

11 years agoFix a typo in Zsh completion
Fenhl [Wed, 4 Mar 2015 12:31:34 +0000 (12:31 +0000)]
Fix a typo in Zsh completion

`dependencie"` → `dependencies`

11 years agoAuto merge of #1372 - alexcrichton:flaky, r=alexcrichton
bors [Tue, 3 Mar 2015 04:33:24 +0000 (04:33 +0000)]
Auto merge of #1372 - alexcrichton:flaky, r=alexcrichton

Due to random hash map traversals this test could build either crate `a` or
crate `b` first, causing the first four output lines to possibly change. Two of
the first four lines are guaranteed to be the compilation of `b` and the other
two are the compilation of `a` as well as building its build script, but no
other lines about compiling `a` can happen until the dependency `b` has finished
compiling.

11 years agoRelax output restrictions to make a test less flaky
Alex Crichton [Tue, 3 Mar 2015 04:31:13 +0000 (20:31 -0800)]
Relax output restrictions to make a test less flaky

Due to random hash map traversals this test could build either crate `a` or
crate `b` first, causing the first four output lines to possibly change. Two of
the first four lines are guaranteed to be the compilation of `b` and the other
two are the compilation of `a` as well as building its build script, but no
other lines about compiling `a` can happen until the dependency `b` has finished
compiling.

11 years agoAuto merge of #1370 - alexcrichton:issue-1299, r=huonw
bors [Tue, 3 Mar 2015 03:52:16 +0000 (03:52 +0000)]
Auto merge of #1370 - alexcrichton:issue-1299, r=huonw

Apparently git submodules are checked in as '/' not '\' so if a '\' leaks
through it'll end up not being found!

Closes #1299

11 years agoAuto merge of #1371 - alexcrichton:issue-1289, r=huonw
bors [Tue, 3 Mar 2015 03:36:55 +0000 (03:36 +0000)]
Auto merge of #1371 - alexcrichton:issue-1289, r=huonw

Before this commit the `dep_targets` function of `Context` didn't actually
return all dependencies in the sense that unit tests (and likely examples) would
not have the same package's library listed as a dependency. This commit
rectifies the situation by ensuring that the package's library is included
whenever necessary in the dependency list.

Closes #1289

11 years agoFix dep_targets for tests depending on libraries
Alex Crichton [Tue, 3 Mar 2015 03:17:25 +0000 (19:17 -0800)]
Fix dep_targets for tests depending on libraries

Before this commit the `dep_targets` function of `Context` didn't actually
return all dependencies in the sense that unit tests (and likely examples) would
not have the same package's library listed as a dependency. This commit
rectifies the situation by ensuring that the package's library is included
whenever necessary in the dependency list.

Closes #1289

11 years agoTranslate '\' to '/' for submodule names
Alex Crichton [Mon, 16 Feb 2015 04:23:09 +0000 (20:23 -0800)]
Translate '\' to '/' for submodule names

Apparently git submodules are checked in as '/' not '\' so if a '\' leaks
through it'll end up not being found!

Closes #1299

11 years agoAuto merge of #1368 - cyndis:lto-dyn, r=alexcrichton
bors [Mon, 2 Mar 2015 22:15:51 +0000 (22:15 +0000)]
Auto merge of #1368 - cyndis:lto-dyn, r=alexcrichton

When building host code, -C prefer-dynamic is passed, but that option
is mutually exclusive with -C lto. Thus when LTO is specified, rustc
errors out.

11 years agoAdd test for having lto enabled while having a build script
Mikko Perttunen [Mon, 2 Mar 2015 17:09:05 +0000 (19:09 +0200)]
Add test for having lto enabled while having a build script

11 years agoDisable LTO for host (plugin, build script) builds
Mikko Perttunen [Sun, 1 Mar 2015 22:53:46 +0000 (00:53 +0200)]
Disable LTO for host (plugin, build script) builds

When building host code, -C prefer-dynamic is passed, but that option
is mutually exclusive with -C lto. Thus when LTO is specified, rustc
errors out.

11 years agoAuto merge of #1367 - alexcrichton:fix-tar, r=alexcrichton
bors [Sun, 1 Mar 2015 19:10:13 +0000 (19:10 +0000)]
Auto merge of #1367 - alexcrichton:fix-tar, r=alexcrichton

Fixes a bug reported in alexcrichton/flate2-rs#15 where the header wasn't being
properly read.

11 years agoUpdate tar dependency
Alex Crichton [Sun, 1 Mar 2015 19:09:40 +0000 (11:09 -0800)]
Update tar dependency

Fixes a bug reported in alexcrichton/flate2-rs#15 where the header wasn't being
properly read.

11 years agodocs: Improve grammar/wording for `cargo owner`
Ches Martin [Sat, 28 Feb 2015 16:57:42 +0000 (11:57 -0500)]
docs: Improve grammar/wording for `cargo owner`

11 years agoAuto merge of #1360 - alexcrichton:new-io, r=alexcrichton
bors [Fri, 27 Feb 2015 23:53:09 +0000 (23:53 +0000)]
Auto merge of #1360 - alexcrichton:new-io, r=alexcrichton

cc @aturon, this is one giant commit.

11 years agoUpdate to rust master and std::{io, path}
Alex Crichton [Fri, 27 Feb 2015 01:04:25 +0000 (17:04 -0800)]
Update to rust master and std::{io, path}

11 years agoAuto merge of #1354 - mbrubeck:gh-pages-title, r=alexcrichton
bors [Wed, 25 Feb 2015 18:27:54 +0000 (18:27 +0000)]
Auto merge of #1354 - mbrubeck:gh-pages-title, r=alexcrichton

This should make them easier to find via search engines, or in browser history/bookmarks.

See #1302 for an old version of this PR.

11 years agoAdd "Cargo" to doc titles
Matt Brubeck [Wed, 25 Feb 2015 17:09:11 +0000 (09:09 -0800)]
Add "Cargo" to doc titles

11 years agoAuto merge of #1347 - alexcrichton:no-more-urllib, r=huonw
bors [Wed, 25 Feb 2015 04:33:45 +0000 (04:33 +0000)]
Auto merge of #1347 - alexcrichton:no-more-urllib, r=huonw

We've had too many problems using urllib to make it worth it.

Closes #1346
Closes #1088
cc #1319 (using a proxy through curl)

11 years agoMerge pull request #1350 from sfackler/master
Alex Crichton [Wed, 25 Feb 2015 04:32:06 +0000 (20:32 -0800)]
Merge pull request #1350 from sfackler/master

Don't time out after 0.006 seconds

11 years agoDon't time out after 0.006 seconds
Steven Fackler [Wed, 25 Feb 2015 04:20:59 +0000 (20:20 -0800)]
Don't time out after 0.006 seconds

11 years agoFixup some python style which was previously reverted
Alex Crichton [Tue, 24 Feb 2015 23:44:37 +0000 (15:44 -0800)]
Fixup some python style which was previously reverted

11 years agoProbe for `curl` when configuring
Alex Crichton [Tue, 24 Feb 2015 18:07:36 +0000 (10:07 -0800)]
Probe for `curl` when configuring

11 years agoRevert "Directly use python’s urllib instead of curl in etc/dl-snapshot.py"
Alex Crichton [Tue, 24 Feb 2015 18:06:04 +0000 (10:06 -0800)]
Revert "Directly use python’s urllib instead of curl in etc/dl-snapshot.py"

This reverts commit aceba880fdf83cbd694fa1a6e572c600b17d1c37.

Conflicts:
src/etc/dl-snapshot.py

11 years agoAuto merge of #1345 - badboy:pass-cargo-name, r=alexcrichton
bors [Tue, 24 Feb 2015 20:14:59 +0000 (20:14 +0000)]
Auto merge of #1345 - badboy:pass-cargo-name, r=alexcrichton

This reverts a change from ee5e24ff8b5.

Before it passed "foo" as `argv[0]`, which does not help much (consider the case there is one script symlinked to different names to handle different things).

This patch changes that to `cargo-{command}`.

It also reverts the passing of "foo" on the help command. Before it used `os::arg`, a different (and ugly) solution would be:

    let args = &[env::args().next().unwrap().clone(), "-h".to_string()];

11 years agoStrip first unused argument when passing to subcommand
Jan-Erik Rediger [Tue, 24 Feb 2015 11:00:58 +0000 (12:00 +0100)]
Strip first unused argument when passing to subcommand

11 years agoAuto merge of #1348 - alexcrichton:rustup, r=alexcrichton
bors [Tue, 24 Feb 2015 19:57:32 +0000 (19:57 +0000)]
Auto merge of #1348 - alexcrichton:rustup, r=alexcrichton

11 years agoFixup warnings and the travis script
Alex Crichton [Tue, 24 Feb 2015 19:14:38 +0000 (11:14 -0800)]
Fixup warnings and the travis script

11 years agoMerge branch 'rustup' of https://github.com/globin/cargo into rustup
Alex Crichton [Tue, 24 Feb 2015 18:58:25 +0000 (10:58 -0800)]
Merge branch 'rustup' of https://github.com/globin/cargo into rustup

11 years agoAuto merge of #1344 - lfairy:dehyphenator, r=alexcrichton
bors [Tue, 24 Feb 2015 17:36:11 +0000 (17:36 +0000)]
Auto merge of #1344 - lfairy:dehyphenator, r=alexcrichton

Closes #1342.

11 years agoAuto merge of #1291 - alexcrichton:issue-1083, r=huonw
bors [Tue, 24 Feb 2015 17:13:58 +0000 (17:13 +0000)]
Auto merge of #1291 - alexcrichton:issue-1083, r=huonw

Hopefully this will help diagnose #1083

11 years agofix style
Robin Gloster [Tue, 24 Feb 2015 12:12:05 +0000 (13:12 +0100)]
fix style

11 years agofix travis script
Robin Gloster [Tue, 24 Feb 2015 12:00:58 +0000 (13:00 +0100)]
fix travis script

11 years agorustup
Robin Gloster [Sun, 22 Feb 2015 23:06:12 +0000 (00:06 +0100)]
rustup

11 years agoUse an underscore instead of a hyphen as a dummy crate name
Chris Wong [Tue, 24 Feb 2015 07:44:33 +0000 (20:44 +1300)]
Use an underscore instead of a hyphen as a dummy crate name

Closes #1342.

11 years agoAuto merge of #1340 - alexcrichton:issue-1329, r=huonw
bors [Tue, 24 Feb 2015 00:28:31 +0000 (00:28 +0000)]
Auto merge of #1340 - alexcrichton:issue-1329, r=huonw

Closes #1329

11 years agoAuto merge of #1341 - alexcrichton:issue-1333, r=huonw
bors [Tue, 24 Feb 2015 00:17:22 +0000 (00:17 +0000)]
Auto merge of #1341 - alexcrichton:issue-1333, r=huonw

Closes #1333

11 years agoBump default timeout to 60s
Alex Crichton [Tue, 24 Feb 2015 00:16:17 +0000 (16:16 -0800)]
Bump default timeout to 60s

Closes #1333

11 years agoDownload registry packages on `cargo fetch`
Alex Crichton [Tue, 24 Feb 2015 00:14:34 +0000 (16:14 -0800)]
Download registry packages on `cargo fetch`

Closes #1329

11 years agoAuto merge of #1339 - jakub-:patch-1, r=alexcrichton
bors [Mon, 23 Feb 2015 17:45:20 +0000 (17:45 +0000)]
Auto merge of #1339 - jakub-:patch-1, r=alexcrichton

11 years agoAdd `Third-party cargo subcommands` to the README
Jakub [Mon, 23 Feb 2015 13:12:44 +0000 (14:12 +0100)]
Add `Third-party cargo subcommands` to the README

11 years agoAuto merge of #1321 - dlevy47:bugfix/no-proxy, r=alexcrichton
bors [Thu, 19 Feb 2015 15:44:24 +0000 (15:44 +0000)]
Auto merge of #1321 - dlevy47:bugfix/no-proxy, r=alexcrichton

Currently, cargo uses `curl_easy_setopt` to explicitly set the http proxy on a curl handle if any of the following are present:

* cargo config `http.proxy`
* git config `http.proxy`
* `HTTP_PROXY` environment variable

The act of explicitly setting the http proxy disables curl's logic for determining which proxy to use for a URL, and breaks the `no_proxy` environment variable. This PR privatizes `cargo::ops::registry::http_proxy` and adds an additional function `cargo::ops::registry::http_proxy_exists` to determine whether or not to use the `git2-curl` subtransport.

11 years agoChange cargo to explicitly set curl proxy settings only when necessary
calc0000 [Wed, 18 Feb 2015 01:39:27 +0000 (20:39 -0500)]
Change cargo to explicitly set curl proxy settings only when necessary
(when it is specified in either the cargo config or the git config).
Otherwise, use curl's logic to pick a proxy (or not).

11 years agoAuto merge of #1288 - alexcrichton:issue-1058, r=huonw
bors [Wed, 18 Feb 2015 16:20:53 +0000 (16:20 +0000)]
Auto merge of #1288 - alexcrichton:issue-1058, r=huonw

Previously the build script's profile was used instead of the target's build
script, causing the wrong environment variables to get set.

Closes #1058

11 years agoSet build script env vars correctly
Alex Crichton [Wed, 11 Feb 2015 05:03:31 +0000 (21:03 -0800)]
Set build script env vars correctly

Previously the build script's profile was used instead of the target's build
script, causing the wrong environment variables to get set.

Closes #1058

11 years agoAuto merge of #1314 - AnthIste:build-script-updates, r=alexcrichton
bors [Tue, 17 Feb 2015 17:32:25 +0000 (17:32 +0000)]
Auto merge of #1314 - AnthIste:build-script-updates, r=alexcrichton

The examples given for `build.rs` do not compile against the latest rust. Instead of adapting to use modules such as `std::old_io`, I attempted to port the examples to use the new `io` and `path` modules.

11 years agoUpdate example build.rs scripts to reflect latest Rust changes
Ruben Bakker [Sun, 15 Feb 2015 20:34:51 +0000 (22:34 +0200)]
Update example build.rs scripts to reflect latest Rust changes

11 years agoAuto merge of #1317 - alexcrichton:issue-1297, r=huonw
bors [Tue, 17 Feb 2015 05:00:30 +0000 (05:00 +0000)]
Auto merge of #1317 - alexcrichton:issue-1297, r=huonw

Not sure why we were doing this, it's quite useful!

Closes #1297

11 years agoDon't discard docopt error information
Alex Crichton [Mon, 16 Feb 2015 04:45:59 +0000 (20:45 -0800)]
Don't discard docopt error information

Not sure why we were doing this, it's quite useful!

Closes #1297

11 years agoAuto merge of #1310 - tanadeau:use-struct-variant, r=alexcrichton
bors [Mon, 16 Feb 2015 06:23:03 +0000 (06:23 +0000)]
Auto merge of #1310 - tanadeau:use-struct-variant, r=alexcrichton

Minor code cleanup for readability and usability for `Method` enum.

11 years agoAuto merge of #1301 - brson:installer-next, r=alexcrichton
bors [Mon, 16 Feb 2015 06:06:41 +0000 (06:06 +0000)]
Auto merge of #1301 - brson:installer-next, r=alexcrichton

Needs to land immediately after https://github.com/rust-lang/rust/pull/22256.

11 years agoUse struct variant instead of long, commented tuple
Trent Nadeau [Sat, 14 Feb 2015 19:42:16 +0000 (14:42 -0500)]
Use struct variant instead of long, commented tuple

11 years agoAuto merge of #1284 - apasel422:issue-1277, r=alexcrichton
bors [Sat, 14 Feb 2015 01:30:29 +0000 (01:30 +0000)]
Auto merge of #1284 - apasel422:issue-1277, r=alexcrichton

This is a WIP for #1277. I would like to add a test for the new behavior in `tests/test_cargo_test.rs`, but I'm having a hard time getting the output to match.

Some feedback would be great to see if this is even the right approach.

11 years agoAuto merge of #1292 - brson:version, r=huonw
bors [Fri, 13 Feb 2015 22:31:46 +0000 (22:31 +0000)]
Auto merge of #1292 - brson:version, r=huonw

```
cargo 0.0.1-pre (9404539 2015-02-09 20:54:26 +0000) (built 2015-02-11)
```

11 years agoAdd the build date to the reported version
Brian Anderson [Fri, 13 Feb 2015 22:29:08 +0000 (14:29 -0800)]
Add the build date to the reported version

```
cargo 0.0.1-pre (9404539 2015-02-09) (built 2015-02-11)
```

11 years agopass features to doctest binary
Andrew Paseltiner [Mon, 9 Feb 2015 19:14:27 +0000 (14:14 -0500)]
pass features to doctest binary

11 years agoUpgrade rust-installer
Brian Anderson [Wed, 11 Feb 2015 21:14:50 +0000 (13:14 -0800)]
Upgrade rust-installer

11 years agoupdate Rust
Andrew Paseltiner [Fri, 13 Feb 2015 04:10:07 +0000 (23:10 -0500)]
update Rust

11 years agoAuto merge of #1283 - alexcrichton:bad-error, r=huonw
bors [Fri, 13 Feb 2015 00:24:36 +0000 (00:24 +0000)]
Auto merge of #1283 - alexcrichton:bad-error, r=huonw

Closes rust-lang/crates.io#130

11 years agoAuto merge of #1285 - alexcrichton:issue-636, r=huonw
bors [Thu, 12 Feb 2015 05:52:50 +0000 (05:52 +0000)]
Auto merge of #1285 - alexcrichton:issue-636, r=huonw

Due to libgit2 not supporting HTTP proxies, the custom transport API of the
library must be used to reimplement the HTTP transport with proxy support. The
git2-curl crate implements this transport on top of the curl-rust crate. By
using libcurl we gain all sorts of proxy support for free.

This transport is not used by default, however, as it is not well battle tested
and the architecture is not currently ideal (download the entire repo into
memory on a clone). Only when an HTTP proxy is present is the new transport
used.

The other drawback of git2-curl is that it does not currently support
authentication. If a private git repository is cloned or authentication is
required then it will generate an error instead of correctly asking for
credentials.

Closes #636

11 years agoAdd more error reporting for failing to join paths
Alex Crichton [Wed, 11 Feb 2015 17:21:04 +0000 (09:21 -0800)]
Add more error reporting for failing to join paths

Hopefully this will help diagnose #1083

11 years agoAdd git2-curl as a dependency
Alex Crichton [Fri, 6 Feb 2015 07:28:18 +0000 (23:28 -0800)]
Add git2-curl as a dependency

Due to libgit2 not supporting HTTP proxies, the custom transport API of the
library must be used to reimplement the HTTP transport with proxy support. The
git2-curl crate implements this transport on top of the curl-rust crate. By
using libcurl we gain all sorts of proxy support for free.

This transport is not used by default, however, as it is not well battle tested
and the architecture is not currently ideal (download the entire repo into
memory on a clone). Only when an HTTP proxy is present is the new transport
used.

The other drawback of git2-curl is that it does not currently support
authentication. If a private git repository is cloned or authentication is
required then it will generate an error instead of correctly asking for
credentials.

Closes #636

11 years agoAuto merge of #1278 - alexcrichton:style, r=brson
bors [Mon, 9 Feb 2015 20:54:26 +0000 (20:54 +0000)]
Auto merge of #1278 - alexcrichton:style, r=brson

* Update to rust master
* Remove many calls to `.as_slice` (deref coercions)
* Remove `get_` prefixes

11 years agoUpdate to rust master
Alex Crichton [Mon, 9 Feb 2015 16:16:08 +0000 (08:16 -0800)]
Update to rust master

11 years agoAuto merge of #1282 - vrinek:master, r=alexcrichton
bors [Mon, 9 Feb 2015 19:24:58 +0000 (19:24 +0000)]
Auto merge of #1282 - vrinek:master, r=alexcrichton

11 years agoImprove error message for missing example/bin
Alex Crichton [Mon, 9 Feb 2015 16:28:36 +0000 (08:28 -0800)]
Improve error message for missing example/bin

Closes rust-lang/crates.io#130

11 years agoAdd link to requirement strings explanation in the manifest.md doc
Kostas Karachalios [Mon, 9 Feb 2015 15:42:54 +0000 (16:42 +0100)]
Add link to requirement strings explanation in the manifest.md doc

11 years agoRemove leading `get_` prefix from accessors
Alex Crichton [Fri, 6 Feb 2015 08:36:19 +0000 (00:36 -0800)]
Remove leading `get_` prefix from accessors

The current naming is [against our guidelines][guidelines]

[guidelines]: https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis

11 years agoDown with .as_slice()!
Alex Crichton [Fri, 6 Feb 2015 08:06:39 +0000 (00:06 -0800)]
Down with .as_slice()!

11 years agoUpdate to rust master
Alex Crichton [Fri, 6 Feb 2015 07:27:53 +0000 (23:27 -0800)]
Update to rust master

11 years agoAuto merge of #1271 - alexcrichton:issue-1267, r=brson
bors [Fri, 6 Feb 2015 22:55:29 +0000 (22:55 +0000)]
Auto merge of #1271 - alexcrichton:issue-1267, r=brson

Why not use `try!` instead!

Closes #1267

11 years agoAuto merge of #1270 - alexcrichton:issue-1105, r=brson
bors [Fri, 6 Feb 2015 22:44:07 +0000 (22:44 +0000)]
Auto merge of #1270 - alexcrichton:issue-1105, r=brson

Closes #1105

11 years agoAuto merge of #1269 - alexcrichton:issue-961, r=brson
bors [Fri, 6 Feb 2015 22:31:46 +0000 (22:31 +0000)]
Auto merge of #1269 - alexcrichton:issue-961, r=brson

Over time this functionality has become obsolete through other means. Due to the
usage of `-L dependency=foo` it's not possible to pick up stale dependencies by
accident, and due to `--extern` you can only pick up a dependency. All of the
cases that auto-cleaning was fixing are now fixed through other methods, so
there's not much use ensuring a "clean build directory" any more.

This has the benefit of fixing issues like #961 where the downside of long
compiles outweighs the benefits of a "let's pretend we started from scratch"
build.

Closes #961

11 years agoAuto merge of #1261 - alexcrichton:issue-1259, r=wycats
bors [Wed, 4 Feb 2015 23:00:30 +0000 (23:00 +0000)]
Auto merge of #1261 - alexcrichton:issue-1259, r=wycats

Previously if a fingerprint was considered fresh based on mtime, it would not
get updated once a compilation finished with the new precise fingerprint (it
would use the older fingerprint). This alters the `resolve` method to take a
flag which disables this behavior and forces looking at the filesystem for a
fingerprint.

Closes #1259

11 years agoAdd a flag to force resolution of a fingerprint
Alex Crichton [Sun, 1 Feb 2015 23:21:15 +0000 (15:21 -0800)]
Add a flag to force resolution of a fingerprint

Previously if a fingerprint was considered fresh based on mtime, it would not
get updated once a compilation finished with the new precise fingerprint (it
would use the older fingerprint). This alters the `resolve` method to take a
flag which disables this behavior and forces looking at the filesystem for a
fingerprint.

Closes #1259

11 years agoRemove auto-cleaning of the build directory
Alex Crichton [Wed, 14 Jan 2015 05:23:43 +0000 (21:23 -0800)]
Remove auto-cleaning of the build directory

Over time this functionality has become obsolete through other means. Due to the
usage of `-L dependency=foo` it's not possible to pick up stale dependencies by
accident, and due to `--extern` you can only pick up a dependency. All of the
cases that auto-cleaning was fixing are now fixed through other methods, so
there's not much use ensuring a "clean build directory" any more.

This has the benefit of fixing issues like #961 where the downside of long
compiles outweighs the benefits of a "let's pretend we started from scratch"
build.

Closes #961

11 years agoAuto merge of #1275 - alexcrichton:update, r=alexcrichton
bors [Wed, 4 Feb 2015 18:31:58 +0000 (18:31 +0000)]
Auto merge of #1275 - alexcrichton:update, r=alexcrichton

Expanding on the work of #1256 to update to rustc 02-02

11 years agoUpdate to the most current nightly
Alex Crichton [Wed, 4 Feb 2015 18:12:49 +0000 (10:12 -0800)]
Update to the most current nightly

11 years agoMerge branch 'rust-master' of https://github.com/gbsf/cargo into update
Alex Crichton [Wed, 4 Feb 2015 18:07:07 +0000 (10:07 -0800)]
Merge branch 'rust-master' of https://github.com/gbsf/cargo into update

11 years agoAvoid `unwrap` when parsing lockfiles
Alex Crichton [Wed, 4 Feb 2015 07:27:06 +0000 (23:27 -0800)]
Avoid `unwrap` when parsing lockfiles

Why not use `try!` instead!

Closes #1267

11 years agoSupport update --precise for registry deps
Alex Crichton [Wed, 4 Feb 2015 00:55:07 +0000 (16:55 -0800)]
Support update --precise for registry deps

Closes #1105

11 years agoSquelch warnings
Gabriel Souza Franco [Fri, 30 Jan 2015 21:22:02 +0000 (19:22 -0200)]
Squelch warnings

11 years agoFix failing test
Gabriel Souza Franco [Fri, 30 Jan 2015 19:24:53 +0000 (17:24 -0200)]
Fix failing test

11 years agoRemove unnecessary allow(unstable)
Gabriel Souza Franco [Fri, 30 Jan 2015 18:12:47 +0000 (16:12 -0200)]
Remove unnecessary allow(unstable)

11 years agoUpdate rustversion.txt
Gabriel Souza Franco [Fri, 30 Jan 2015 17:53:15 +0000 (15:53 -0200)]
Update rustversion.txt

11 years agoWorkaround to make code compile
Gabriel Souza Franco [Fri, 30 Jan 2015 17:38:33 +0000 (15:38 -0200)]
Workaround to make code compile

Blame @alexcrichton

11 years agoUpdate dependencies
Gabriel Souza Franco [Fri, 30 Jan 2015 15:21:23 +0000 (13:21 -0200)]
Update dependencies

11 years agoUpdate log crate to v0.2
Gabriel Souza Franco [Fri, 30 Jan 2015 14:36:24 +0000 (12:36 -0200)]
Update log crate to v0.2

11 years agoWriter::write → Writer::write_all
Gabriel Souza Franco [Fri, 30 Jan 2015 14:38:21 +0000 (12:38 -0200)]
Writer::write → Writer::write_all

11 years agostd::io → std::old_io
Gabriel Souza Franco [Fri, 30 Jan 2015 13:48:43 +0000 (11:48 -0200)]
std::io → std::old_io